<%@ page import="com.ffpc.struts.StrutsMessage" %>
<%@ page import="admin.*" %>
<%
    StrutsMessage message = (StrutsMessage)request.getAttribute("message");
    if (message==null)
       message = new StrutsMessage();
    String contextPath = request.getContextPath();
    User user = (User)session.getAttribute("user");
%>
<html>
<head></head>
<% if (message.getMessage()!=null && message.getMessage().trim().length()>3 )
   { %>
  <script lang=javascript >
          alert("<%= message.getMessage() %>");
  </script>
<% } %>
<% if (user==null)
   { %>
  <script lang=javascript >
          window.location.href="<%=contextPath%>/Login.jsp";
  </script>
<% }
   else
   {   %>
   <script lang=javascript >
          window.location.href="<%=contextPath%>/servlet/admin.menu.MenuServlet";
  </script>
<% } %>
<body>
</body>
</html>

